function loadCity(provinceName, cityId, regionId, td_city){
	var url_remote = "productmodifytwo.action?productType=second005&provinceName=" + provinceName + "&date=" + new Date;
	url_remote = encodeURI(url_remote);
	$.post(url_remote, null, function(data){
		var items = data.getElementsByTagName("item");
		var remain = items[0].childNodes[0].nodeValue;
		if("0" == remain){
			$("#" + cityId).show();
			$("#" + regionId).show();
			var cityName = items[1].childNodes[0].nodeValue;
			$("#" + cityId).empty();
			var infoArray = cityName.split(",");
			var optionsCity = "<option value='请选择'>请选择</option>";
			for(var i = 0; i < infoArray.length - 1; i++){
				optionsCity = optionsCity + "<option value='" + infoArray[i] + "'>" + infoArray[i] + "</option>";
			}
			$(optionsCity).appendTo("#" + cityId);
			//$("#" + regionId).empty();
			//$("<option value='请选择'>请选择</option>").appendTo("#" + regionId);
          	$("#" + cityId).val(td_city);
		}else if("1" == remain){
			$("#" + cityId).hide();
			$("#" + regionId).hide();
		}
	});
}
function loadRegion(cityName, regionId, td_region){
	var url_remote = "productmodifytwo.action?productType=second006&cityName=" + cityName + "&date=" + new Date;
	url_remote = encodeURI(url_remote);
	$.post(url_remote, null, function(data){
		var items = data.getElementsByTagName("item");
		var remain = items[0].childNodes[0].nodeValue;
		if("0" == remain){
			var regionName = items[1].childNodes[0].nodeValue;
			$("#" + regionId).empty();
			var infoArray = regionName.split(",");
			var optionsRegion = "<option value='请选择'>请选择</option>";
			for(var i = 0; i < infoArray.length - 1; i++){
				optionsRegion = optionsRegion + "<option value='" + infoArray[i] + "'>" + infoArray[i] + "</option>";
			}
			$(optionsRegion).appendTo("#" + regionId);
			$("#" + regionId).val(td_region);
		}
	});
}